 <?php

if (isset ($_GET['exercice']&& isset$_GET['note'])) {

	$connexion = mysql_connect("localhost", "root", "");
	mysql_select_db('etunote', $connexion);
	
	extract($_GET);
	enregister($nom, $exe, $note);
	echo $nom . " &agrave; la note ; " . $note . " dans l'exer  : ". $exe;
}else{
	echo "Y'a RIEN !!";
}

function enregister($nom, $exe, $note) {
	
	$reg= mysql_query("INSERT INTO etudiant VALUES ('$nom','$exe','$note')";
	mysql_query($sql) or die('Requête invalide : ' . mysql_error());
	
}

/*
 $etu = $_POST['etu']:
 $exe = $_POST['exe'];
 $note = $_POST['note'];*/

    
 ?>